package com.jumi.microservice.dto.refundgoods;

        import com.jumi.microservice.common.base.dto.BaseRequest;
        import com.jumi.microservice.common.exception.BaseException;
        import io.swagger.annotations.ApiModelProperty;

/**
 * @author scw
 */
public class ExportRefundGoodsReceivedListRequest extends BaseRequest {
    @ApiModelProperty("供货商类型：1-供货商 2-仓库")
    private Byte supplierType;
    @ApiModelProperty("供货商ID")
    private Integer supplierId;
    @ApiModelProperty(value = "申请开始时间")
    private String applyBeginTime;
    @ApiModelProperty(value = "申请结束时间")
    private String applyEndTime;
    @ApiModelProperty(value = "上传单号开始时间")
    private String logisticsBeginTime;
    @ApiModelProperty(value = "上传单号结束时间")
    private String logisticsEndTime;
    @ApiModelProperty(value = "订单编号")
    private String originalOrderNo;
    @ApiModelProperty(value = "售后编号")
    private String refundOrderNo;
    @ApiModelProperty(value = "批量ID , 逗号分割字符串")
    private String idStr;

    public Byte getSupplierType() {
        return supplierType;
    }

    public void setSupplierType(Byte supplierType) {
        this.supplierType = supplierType;
    }

    public Integer getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Integer supplierId) {
        this.supplierId = supplierId;
    }

    public String getApplyBeginTime() {
        return applyBeginTime;
    }

    public void setApplyBeginTime(String applyBeginTime) {
        this.applyBeginTime = applyBeginTime;
    }

    public String getApplyEndTime() {
        return applyEndTime;
    }

    public void setApplyEndTime(String applyEndTime) {
        this.applyEndTime = applyEndTime;
    }

    public String getLogisticsBeginTime() {
        return logisticsBeginTime;
    }

    public void setLogisticsBeginTime(String logisticsBeginTime) {
        this.logisticsBeginTime = logisticsBeginTime;
    }

    public String getLogisticsEndTime() {
        return logisticsEndTime;
    }

    public void setLogisticsEndTime(String logisticsEndTime) {
        this.logisticsEndTime = logisticsEndTime;
    }

    public String getOriginalOrderNo() {
        return originalOrderNo;
    }

    public void setOriginalOrderNo(String originalOrderNo) {
        this.originalOrderNo = originalOrderNo;
    }

    public String getRefundOrderNo() {
        return refundOrderNo;
    }

    public void setRefundOrderNo(String refundOrderNo) {
        this.refundOrderNo = refundOrderNo;
    }

    public String getIdStr() {
        return idStr;
    }

    public void setIdStr(String idStr) {
        this.idStr = idStr;
    }

    @Override
    public void checkRequest() {
        if (
                this.supplierType == null && this.supplierId == null && this.applyBeginTime == null && this.applyEndTime == null && this.logisticsBeginTime == null && this.logisticsEndTime == null && this.originalOrderNo == null && this.refundOrderNo == null && this.idStr == null
        ) {
            throw new BaseException(500, "请先选择搜索条件");
        }
    }
}
